@import "~themes/vars.less";

.header {
  :global {
    .ant-menu-submenu-title {
      height: 50px;
    }

    .ant-menu-horizontal {
      line-height: 50px;

      & > .ant-menu-submenu:hover {
        color: #1890ff;
        background-color: rgba(24, 144, 255, 0.15);
      }
    }

    .ant-menu {
      border-bottom: none;
      height: 50px;
    }

    .ant-menu-horizontal > .ant-menu-submenu {
      top: 0;
      margin-top: 0;
    }

    .ant-menu-horizontal > .ant-menu-item,
    .ant-menu-horizontal > .ant-menu-submenu {
      border-bottom: none;
    }

    .ant-menu-horizontal > .ant-menu-item-active,
    .ant-menu-horizontal > .ant-menu-item-open,
    .ant-menu-horizontal > .ant-menu-item-selected,
    .ant-menu-horizontal > .ant-menu-item:hover,
    .ant-menu-horizontal > .ant-menu-submenu-active,
    .ant-menu-horizontal > .ant-menu-submenu-open,
    .ant-menu-horizontal > .ant-menu-submenu-selected,
    .ant-menu-horizontal > .ant-menu-submenu:hover {
      border-bottom: none;
    }

    .ant-menu-dark{
      background-color: #22252d;
      color: #eef0f4;
    }
  }
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: @shadow-2;
  display: flex;
  align-items: center;
  height: 50px;
  line-height: 50px;
  z-index: 9;
  background-color: #22252d;

  .logo {
    width: 160px;
    height: 100%;
    border-right: 1px solid #111215;
    display: flex;
    justify-content: center;
    .navlink {
      display: flex;
      align-items: center;
      height: 100%;
      color: #fff;
      &.active {
        color: @primary-color;
      }

      img {
        width: 40px;
        margin-right: 8px;
      }
      
      span {
        vertical-align: text-bottom;
        font-size: 16px;
        text-transform: uppercase;
        display: inline-block;
        font-weight: 700;
        white-space: nowrap;
        :local {
          animation: fadeLeftIn 500ms linear;
          animation-fill-mode: both;
        }
      }
    }
    
  }

  .leftMenu{
    display: flex;
    :global{
      .ant-menu{
        display: flex;
        .ant-menu-item{
          display: flex;
          min-width: 50px;
          padding: 0 0 0 20px;
          a{
            display: block;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
      }
    }
    .moreItem{
      padding: 0 15px;
      font-size: 20px;
    }
    
  }
  .rightMenu{
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .button {
    min-width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    transition: @transition-ease-in;

    &:hover {
      color: @primary-color;
      background-color: fade(@primary-color, 15%);
    }
  }
}

.popovermenu {
  width: 280px;
  margin-left: 6px;

  :global .ant-popover-inner-content {
    padding: 0;

    .ant-menu-inline .ant-menu-item,
    .ant-menu-vertical .ant-menu-item {
      border-right: 0;
    }

    .ant-menu-inline .ant-menu-item-selected,
    .ant-menu-inline .ant-menu-selected {
      border-right: 0;
    }
  }
}
